package rsj;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.scheduling.annotation.EnableScheduling;
import rsj.annotation.MyScanner;


/**
 * @author       xuguoliang@rlyy.com
 * @date         2019/12/25 14:33:29
 * @description  主启动类
 * @package      com.examplekaochengxu
 */
//@EnableScheduling
@MyScanner(basePackages = "rsj.sql")
@ComponentScans(value = {@ComponentScan("rsj.sql")})
@SpringBootApplication
public class MainApplication {

    public static void main(String[] args) {
        // SpringBoot 关闭Web功能
        new SpringApplicationBuilder(MainApplication.class).web(WebApplicationType.NONE).run(args);
    }
}
